package smn.dao.managerimpl;

import smn.domain.Share;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import smn.dao.manager.IShareManager;

import javax.annotation.PostConstruct;
import javax.persistence.EntityManagerFactory;
import java.util.List;

/**
 * User: Abdulaziz
 * Date: 1/8/12
 * Time: 10:15 AM
 */
@Repository
public class ShareManagerImpl extends AbstractJpaDaoSupport<Share> implements IShareManager{
    @Override
    protected Class getObjectClass() {
        return Share.class;  //To change body of implemented methods use File | Settings | File Templates.
    }

   @Autowired
	EntityManagerFactory entityManagerFactory;

	@PostConstruct
	public void init() {
		super.setEntityManagerFactory(entityManagerFactory);
	}
    public EntityManagerFactory getEntityManagerFactory() {
        return entityManagerFactory;
    }
    public Share find(Integer id) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<Share> listAll() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }


}

